package com.example.backend.service;

import com.example.backend.pojo.Restaurant;
import com.example.backend.pojo.User;

import java.util.List;

public interface RestaurantService {
    Restaurant getRestaurantByName(String restaurantname);

    void register(Restaurant restaurant);

    void update(Restaurant restaurant);

    void updatePwd(Integer id,String new_pwd);
    void  rejectres(String inform,String restaurantid);

    List<Restaurant> getall();

    void surplus(String id,Integer surplus);

    List<Restaurant> search(String restaurantname);

    void normal(Integer restaurantid);

    void relax(Integer restaurantid);

    List<Restaurant> getallnormalres();


    List<User> getclient(String restaurantid);

    List<Restaurant> reccommendation(Integer userid, Integer usertypeid);

    void addinform(String inform, String restaurantid);

    Double getmoney(String restaurantid);

    void updatemoney(Double money, String restaurantid);
}
